package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
@ApiModel(value = "com.qingfeng.client.bean.GoodsType")
@Data
@TableName(value = "goods_type")
public class GoodsType {
    /**
     * 类型id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "类型id")
    private Integer id;

    /**
     * 类型名称
     */
    @TableField(value = "type_name")
    @ApiModelProperty(value = "类型名称")
    private String typeName;

    /**
     * 父节点id
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value = "父节点id")
    private Integer parentId;

    /**
     * 所在层级
     */
    @TableField(value = "level")
    @ApiModelProperty(value = "所在层级")
    private Integer level;


    @TableField(value = "sort")
    @ApiModelProperty(value = "排序")
    private Integer sort;


    @TableField(value = "common_sort")
    @ApiModelProperty(value = "排序")
    private Integer commonSort;

    @TableField(value = "store_id")
    @ApiModelProperty(value = "店铺id")
    private Integer storeId;


    @TableField(value = "icon")
    @ApiModelProperty(value = "排序")
    private String icon;

}
